package com.rd.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsl
 * @since 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_job")
public class Job implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 职位ID
     */
    @TableId(value = "jobid", type = IdType.AUTO)
    private Integer jobid;

    /**
     * 职位名称
     */
    private String jobname;

    /**
     * 职位的工作地点
     */
    private String jobplace;

    /**
     * 职位详情
     */
    private String jobinfo;

    /**
     * 所属部门
     */
    private Integer deptid;


    @TableField(exist = false) //t_job表中没有这1列
    private Dept dept; //配置N-1关联关系
}
